// vite.index.js
import { defineConfig } from "file:///Users/idea/work/tampermonkey-plugins/appoinment-schedule-export/node_modules/vite/dist/node/index.js";
import vue from "file:///Users/idea/work/tampermonkey-plugins/appoinment-schedule-export/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { viteSingleFile } from "file:///Users/idea/work/tampermonkey-plugins/appoinment-schedule-export/node_modules/vite-plugin-singlefile/dist/esm/index.js";
import VueDevTools from "file:///Users/idea/work/tampermonkey-plugins/appoinment-schedule-export/node_modules/vite-plugin-vue-devtools/dist/vite.mjs";

// src/request/env.js
var env_default = {
  activeProfile: "prod",
  local: {
    host: "http://127.0.0.1:8080",
    prefixPath: "/kapi",
    rewritePrefix: false
  },
  prod: {
    host: "http://his-gyfy.cfuture.shop",
    openHost: "http://open-gyfy.cfuture.shop",
    prefixPath: "/kapi",
    originFlag: true,
    rewritePrefix: true
  }
};

// vite.index.js
var vite_config_default = defineConfig({
  base: "./",
  plugins: [
    VueDevTools(),
    vue(),
    viteSingleFile()
  ],
  server: {
    //主要是加上这段代码
    host: "127.0.0.1",
    port: 3e3,
    proxy: {
      "/kapi/hbos-business-thirdparty-integration": {
        target: env_default[env_default.activeProfile].host,
        //实际请求地址
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/kapi/, env_default[env_default.activeProfile].rewritePrefix ? "/kapi" : "")
      },
      "/kapi/gw-api": {
        target: env_default.prod.openHost,
        //实际请求地址
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/kapi/, env_default[env_default.activeProfile].rewritePrefix ? "/kapi" : "")
      },
      "/kapi": {
        target: env_default.prod.host,
        //实际请求地址
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/kapi/, env_default[env_default.activeProfile].rewritePrefix ? "/kapi" : "")
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiLCAic3JjL3JlcXVlc3QvZW52LmpzIl0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